
<div class="album-heading">
  <%= @photoalbum.name %> Album
</div>
<br />

<%@photoalbum.photos.each do |photo|%>
  <span style="margin: 10px;">
    <%= link_to( image_tag(photo.image(:small)), photo.image(:original) ) %>
  </span>
<%end%>


<p>
<%= link_to 'Edit', edit_photoalbum_path(@photoalbum) %> |
<%= link_to 'Back', photoalbums_path %>
</p>
